package com.opensource.lzx;

import com.opensource.lzx.entity.ChildVO;
import com.opensource.lzx.entity.ParentVO;
import com.opensource.lzx.utils.GeneraValidUtils;

import java.util.Arrays;
import java.util.Collections;

/**
 * @Author: 739891618@qq.com
 * @Date: 2022-11-16 21:58:10
 * @ClassName: ValidDemo
 * @Describe: this is a ...
 */
public class ValidDemo {
    public static void main(String[] args) {
        ChildVO c1 = new ChildVO();
        c1.setDept("JD");
        c1.setDeptType("JD");
        c1.setValues(Arrays.asList("1","2","3"));

        ChildVO c2 = new ChildVO();
        c2.setDept("360");
        c2.setDeptType("DY");
        c2.setValues(Arrays.asList("1","2","3"));

        ParentVO parentVO = new ParentVO();
        parentVO.setName("校验测试");
        parentVO.setType("a");
        parentVO.setChildList(Arrays.asList(c1, c2));

        GeneraValidUtils.generalValid(parentVO);
    }
}
